home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Examples / Helpfile / _IETableGetCollection.au3 < prev    next >
Text File  |  2007-09-08  |  872b  |  20 lines

  1. ; *******************************************************
  2. ; Example 1 - Open a browser with the table example, get a reference to the first table
  3. ;                on the page (index 0) and read its contents into a 2-D array
  4. ; *******************************************************
  5. ;
  6. #include <IE.au3>
  7. $oIE = _IE_Example ("table")
  8. $oTable = _IETableGetCollection ($oIE, 0)
  9. $aTableData = _IETableWriteToArray ($oTable)
  10.  
  11. ; *******************************************************
  12. ; Example 2 - Open a browser with the table example, get a reference to the
  13. ;                table collection and display the number of tables on the page
  14. ; *******************************************************
  15. ;
  16. #include <IE.au3>
  17. $oIE = _IE_Example ("table")
  18. $oTable = _IETableGetCollection ($oIE)
  19. $iNumTables = @extended
  20. MsgBox(0, "Table Info", "There are " & $iNumTables & " tables on the page")